package com.bbs.server;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bbs.dao.CommentMapper;
import com.bbs.model.Comment;


@Service
public class CommentService {

	@Resource
	private CommentMapper commentMapper;
	
    public void add(Comment comment){
    	commentMapper.add(comment);
    }
	 
	public void update(Comment comment){
		commentMapper.update(comment);
	}
	
	public void delete(Comment comment){
		commentMapper.delete(comment);
	}
	
	public List<Comment> getCommentList(){
		return commentMapper.getCommentList();
	}
	
	public List<Comment> fenye(Map<String,Object> data){
		return commentMapper.fenye(data);
	}
	
	public List<Comment> chazhao(Map<String,Object> data){
		return commentMapper.chazhao(data);
	}
	

}
